import {request} from "./request"

export function getHsopSetList(current,limit,searchObj) {
  return request({
    url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
    method: 'post',
    data: searchObj
  })
}

export function delHospSet(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: "delete"
  })
}

export function batchHospSet(idList) {
  return request({
    url: `/admin/hosp/hospitalSet/batchRemove`,
    method: "delete",
    data: idList
  })
}

export function getHospList(page,limit,searchObj) {
  return request({
    url: `/admin/hosp/hospital/list/${page}/${limit}`,
    params: searchObj
  })
}

export function updateStatus(id,status) {
  return request({
    url: `/admin/hosp/hospital/updateHospStatus/${id}/${status}`
  })
}

export function getHospById(id) {
  return request({
    url: `/admin/hosp/hospital/showHospDetail/${id}`
  })
}

export function getDeptById(hoscode) {
  return request({
    url: `/admin/hosp/department/getDeptList/${hoscode}`
  })
}